package com.blb.zycommunity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 房屋绑定表 
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@TableName("zy_owner_room")
@Data
@ApiModel(value = "ZyOwnerRoom对象", description = "房屋绑定表 ")
public class ZyOwnerRoom implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("房屋绑定id")
    private String ownerRoomId;

    @ApiModelProperty("小区id")
    private Long communityId;

    @ApiModelProperty("楼栋id")
    private Long buildingId;

    @ApiModelProperty("单元id")
    private Long unitId;

    @ApiModelProperty("房间id")
    private Long roomId;

    @ApiModelProperty("业主id")
    private String ownerId;

    @ApiModelProperty("业主类型")
    private String ownerType;

    @ApiModelProperty("绑定状态（0审核中 1绑定 2审核失败）")
    private String roomStatus;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("备注")
    private String remark;

    @TableField(exist = false)
    private ZyOwner zyOwner;

    @TableField(exist = false)
    private ZyCommunity zyCommunity;

    @TableField(exist = false)
    private ZyUnit zyUnit;

    @TableField(exist = false)
    private ZyBuilding zyBuilding;

    @TableField(exist = false)
    private ZyRoom zyRoom;

    @TableField(exist = false)
    private ZyOwnerRoom zyOwnerRoom;


}
